package me.weijing.common.model;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

public class Police implements Serializable {
    private static final long serialVersionUID = -2563999203019135145L;
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField
    private long pid;// 警察pid
    @DatabaseField
    private String policeId;// 警察编号
    @DatabaseField
    private String phone;// 警察电话号码
    @DatabaseField
    private String email;// 警察邮箱
    @DatabaseField
    private String nick;// 警察昵称
    @DatabaseField
    private String signature;// 警察签名
    @DatabaseField
    private int level;// 等级
    @DatabaseField
    private String avatar;// 头像Url
    @DatabaseField
    private String avatarImg;// 头像
    @DatabaseField
    private String region;// 区域
    @DatabaseField
    private String state;// 状态
    @DatabaseField
    private int star;
    private Location location;// 地理位置
    @DatabaseField
    private Presence status;// 警察状态
    @DatabaseField
    private String regionCallCenter;// 中心号码
    @DatabaseField
    private String token;
    @DatabaseField
    private String identity;
    @DatabaseField
    private String name;
    @DatabaseField
    private String simSerial;
    @DatabaseField(canBeNull = true, foreign = true,foreignAutoCreate=true)
    private OpenfireUser openfireUser;

    public String getPoliceId() {
        return policeId;
    }

    public void setPoliceId(String policeId) {
        this.policeId = policeId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public String getAvatarImg() {
        return avatarImg;
    }

    public void setAvatarImg(String avatarImg) {
        this.avatarImg = avatarImg;
    }

    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public OpenfireUser getOpenfireUser() {
        return openfireUser;
    }

    public void setOpenfireUser(OpenfireUser openfireUser) {
        this.openfireUser = openfireUser;
    }

    public int getId() {
        return id;
    }

    public String getToken() {
        return token;
    }

    public String getSimSerial() {
        return simSerial;
    }

    public void setSimSerial(String simSerial) {
        this.simSerial = simSerial;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getRegionCallCenter() {
        return regionCallCenter;
    }

    public void setRegionCallCenter(String regionCallCenter) {
        this.regionCallCenter = regionCallCenter;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Presence getStatus() {
        return status;
    }

    public void setStatus(Presence status) {
        this.status = status;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    @Override
    public String toString() {
        return "Police [id=" + id + ", pid=" + pid + ", policeId=" + policeId + ", phone=" + phone + ", email=" + email + ", nick=" + nick + ", signature="
                + signature + ", level=" + level + ", avatar=" + avatar + ", avatarImg=" + avatarImg + ", region=" + region + ", state=" + state + ", star="
                + star + ", location=" + location + ", status=" + status + ", regionCallCenter=" + regionCallCenter + ", token=" + token + ", identity="
                + identity + ", name=" + name + ", simSerial=" + simSerial + ", openfireUser=" + openfireUser + "]";
    }

}
